package com.nit.lab.dto.basic;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class UserDTO {
    private Long key;
    private Long userId;
    private String loginName;
    private String loginPwd;
    private Long roleId;
    private Long unitId;
    private Long unitFather;
    private Long unitType;
    private String userName;
    private String unitName;
    private Long userType;
    private String userImage;
    private String userInfo;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreate;
    private Date gmtModified;

    public UserDTO() {
    }

    public UserDTO(Long key, Long userId, String loginName, String loginPwd, Long roleId, Long unitId, Long unitFather,
                   Long unitType, String userName, String unitName, Long userType, String userImage, String userInfo,
                   Date gmtCreate, Date gmtModified) {
        this.key = key;
        this.userId = userId;
        this.loginName = loginName;
        this.loginPwd = loginPwd;
        this.roleId = roleId;
        this.unitId = unitId;
        this.unitFather = unitFather;
        this.unitType = unitType;
        this.userName = userName;
        this.unitName = unitName;
        this.userType = userType;
        this.userImage = userImage;
        this.userInfo = userInfo;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
    }

    public Long getKey() {
        return key;
    }

    public void setKey(Long key) {
        this.key = key;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public Long getUnitFather() {
        return unitFather;
    }

    public void setUnitFather(Long unitFather) {
        this.unitFather = unitFather;
    }

    public Long getUnitType() {
        return unitType;
    }

    public void setUnitType(Long unitType) {
        this.unitType = unitType;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Long getUserType() {
        return userType;
    }

    public void setUserType(Long userType) {
        this.userType = userType;
    }

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    public String getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(String userInfo) {
        this.userInfo = userInfo;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}
